package cn.hss.object.abstractTest;

/**日期类
 * @author 作者：HeShaoShuai
 * @Email 邮箱：2569819541@qq.com
 * @Date 日期：2023/4/25 17:10
 * @Package 包名：cn.hss.object.abstractTest
 * @Project 项目名：JavaSE
 * @Version 1.0
 */
public class MyDate {
	private int year;
	private int month;
	private int day;
	public MyDate(){}

	public MyDate(int year,int month,int day) {
		this.year = year;
		this.month = month;
		this.day = day;
	}
	public String toDateString(){
		return year+"年"+month+"月"+day+"日";
	}
	public int getYear() {
		return year;
	}

	public void setYear(final int year) {
		this.year = year;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(final int month) {
		this.month = month;
	}

	public int getDay() {
		return day;
	}

	public void setDay(final int day) {
		this.day = day;
	}
}
